# 导包
import json
import config


# 定义一个构建测试数据方法
# [(),(),()]
def build_data():
    test_data = []

    with open(config.BASE_PATH + "/data/login.json", encoding="UTF-8") as f:
        json_data = json.load(f)
        for case_data in json_data:
            # mobile = case_data.get("mobile")
            # password = case_data.get("password")
            # status_code = case_data.get("status_code")
            # success = case_data.get("success")
            # code = case_data.get("code")
            # message = case_data.get("message")
            tup_data = tuple(case_data.values())
            test_data.append(tup_data)
    return test_data


if __name__ == '__main__':
    print(build_data())
